﻿<style>
    .pager
    {
        clear: both;
        padding: 10px 0px;
        height: 16px;
        font-size: 14px;
        margin-left: 5px;
        width: 100%;
        color: #C0C0C0;
        cursor: pointer;
    }
    .pager ul, .pager li, .pager div
    {
        float: left;
        padding: 0;
        margin: 0;
    }
    .pager li
    {
        width: auto;
        float: left;
        line-height: 19px;
        margin-right: 7px;
        list-style: none;
    }
    .pager li a
    {
        display: block;
        background: #fff;
        border: 1px solid #EDEDED;
        color: #999;
        text-decoration: none;
        white-space: nowrap;
        overflow: visible;
        font-size: 14px;
        font-family: simsun;
        width: auto !important;
        width: 20px;
        padding: 1px 2px 0 2px;
        line-height: 18px;
        text-align: center;
        min-width: 14px;
    }
    .pager li a:hover
    {
        border: 1px solid #F17C0A;
        background: #FFF8F0;
        background-color: #F17C0A;
        text-decoration: none;
    }
    .pager li a.more, .pager li a.more:hover
    {
        border: none;
        padding: 2px 3px 1px 3px;
    }
    .pager li a.smore, .pager li a.smore:hover
    {
        border: none;
        padding: 2px 3px 1px 3px;
    }
    .pager li.current a
    {
        background-color: #fc9902;
        color: #000;
    }
    .pager li.selected
    {
        width: 15px;
        padding: 2px 3px 1px 3px;
        text-align: center;
    }
    .pager li.selected, .pager li.selected a
    {
        border: none;
        background: none;
        color: #333;
    }
    .pager .input
    {
        border: 0px;
    }
    .pager .input input
    {
        border: 1px solid #9EC9EC;
        width: 40px;
        height: 20px;
        line-height: 20px;
        text-align: center;
    }
    .pager .stat
    {
        float: right;
    }
</style>
<center>
    <div class="top">
        <div class="logo">
            <img src="img/logo.jpg" /></div>
        <div class="login_state">
            <ul>
                <li class="login">你好:
                    <%=GetUName()%></li>
                <li class="logout"><a href="#" onclick="loginout()">退出</a></li>
            </ul>
        </div>
    </div>
</center>
<div class="top_nav"> 
    <ul class="ul_p">
        <li class="li_p close" onclick = "ToUrl('index.aspx')"><span>管理中心</span> </li>
        <li class="li_p close"  onclick = "ToUrl2('/client/PublisArticle.html')"><span>我的发布</span></li>
        <li class="li_p close"  onclick = "ToUrl2('/client/Personal.html')"><span>商家信息</span></li>
        <li class="li_p close"  id="li_agent" style="position:relative;"><span>代理管理</span>
            <ul class="ul_c" onclick = "event.stopPropagation();" style ="z-index:999">
                <li class="agent" style='display:none;' onclick = "ToUrl('a_list.aspx')">客户管理</li>
                <li class="agent" style='display:none;' onclick = "ToUrl('a_bankroll.aspx')">交易记录</li>
                <li  onclick = "ToUrl('a_daili.aspx')">推广代理</li>
            </ul>
        </li>
    </ul>
</div>
<script src="/Client/js/base.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        if (getCookie("agentid") != null && getCookie("agentid") != "") {
            $(".agent").css("display", "");
            $("#li_agent").bind("click", function () { ToUrl('a_list.aspx') });
        }


        $('.li_p').hover(function () {
            //鼠标移到上面时执行
            $(this).addClass("open");
            $(this).removeClass("close");
        }, function () {
            //鼠标离开时执行
            $(this).removeClass("open");
            $(this).addClass("close");
        });
    });
    function ToUrl2(url) {
        window.open(url)
    }

    function loginout() {
        delCookie("token");
        delCookie("userid");
        delCookie("logintype");
        delCookie("parentid");
        delCookie("name");
        delCookie("agentid");
        window.location.href = "login.html";
    }
</script>
